import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//查询班级评分
export function getClassFraction(data) {
  return request({
    url: baseUrl + "/pc/class-fraction",
    method: "get",
    params: data
  });
}

//更新班级评分
export function updateClassFraction(data) {
  return request({
    url: baseUrl + "/pc/class-fraction",
    method: "put",
    data
  });
}

//初始化班级评分
export function InitializeClassFraction(data) {
  return request({
    url: baseUrl + "/pc/class-fraction/" + data,
    method: "post",
  });
}